<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>测试结果</title>
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <link rel="stylesheet" href="../css/test.css">
</head>
<body>
<img class="pass_img" src="../img/img_shibai@2x.png" alt="">
<div class="content_box">
    <div class="text_1">很遗憾，您没有通过考试</div>
    <div class="text_2" id="fenshu">50</div>
    <div class="text_3">您的得分</div>
</div>
<div class="btn" id="star_btn">再考一次</div>
<div class="btn_2" id="close">去学习一下</div>
</body>
<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
<script src="../js/rem.js"></script>
<script src="../js/test.js"></script>
<script>
    function getUrlParam(name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
        var r = window.location.search.substr(1).match(reg); //匹配目标参数
        if (r != null) return unescape(r[2]); return null; //返回参数值
    }
    var fenshu = getUrlParam('exam_score');
    $('#fenshu').html(fenshu);
    $("#star_btn").on("touchstart",function(){
        window.location.href='questions.html'
    });
//    $("#close").on("touchstart",function(){
//        window.location.href='questions.html'
//    });
    $('#close').on("touchstart",function () {
        close();
    })
    function close() {
        alert('关闭')
    }
</script>
</html>